package com.binge.test6;

import cn.hutool.core.date.StopWatch;
import lombok.Data;

/**
 * ClassName:Main3
 * Package:com.binge.test6
 * Description:
 *
 * @Author @Bin
 * @Date 2024/1/25-15:55
 * @Version: v1.0
 */
public class Main3 {

    public static void main(String[] args) {
        StopWatch stopWatch = new StopWatch();
        stopWatch.start();
        Person pperson = null;
        for (int i = 0; i < 1000000000L; i++) {
            pperson = new Person();
        }
        pperson.getName();
        stopWatch.stop();
        System.out.println(stopWatch.getTotalTimeMillis());
    }

}

@Data
class Person{

    private String name;
}
